package com.xxx.redislock;

import com.xxx.redislock.listener.SystemListener;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * redis分布式可重入锁
 * https://mp.weixin.qq.com/s/foXfebF5blLqLbIVjGy72w
 */
@SpringBootApplication
public class RedisLockApplication {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(RedisLockApplication.class);
        springApplication.addListeners(new SystemListener()); // 添加listener
        springApplication.run(args);
    }

}
